package com.fastloan.mgt.application.contract.model;

import com.fastloan.mgt.application.contract.enums.LoanModeEnum;
import com.kawins.base.baseabs.BaseModel;

import java.util.Date;
import javax.persistence.*;

@Table(name = "ZY_APPLICATION_LOAN_RESULT")
public class ApplicationLoanResult extends BaseModel<String>{
    /**
     * 进件ID
     */
    @Id
    @Column(name = "APPLICATION_ID")
    private String applicationId;

    /**
     * 放款状态
     */
    @Column(name = "LOAN_STATUS")
    private Integer loanStatus;

    /**
     * 放款信息
     */
    @Column(name = "LOAN_MSG")
    private String loanMsg;

    /**
     * 放款订单号
     */
    @Column(name = "LOAN_NO")
    private String loanNo;

    /**
     * 放款时间
     */
    @Column(name = "LOAN_TIME")
    private Date loanTime;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;

    @Transient
    private LoanModeEnum loanModeEnum;

    public LoanModeEnum getLoanModeEnum() {
        return loanModeEnum;
    }

    public void setLoanModeEnum(LoanModeEnum loanModeEnum) {
        this.loanModeEnum = loanModeEnum;
    }

    /**
     * 获取进件ID
     *
     * @return APPLICATION_ID - 进件ID
     */
    public String getApplicationId() {
        return applicationId;
    }

    /**
     * 设置进件ID
     *
     * @param applicationId 进件ID
     */
    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    /**
     * 获取放款状态
     *
     * @return LOAN_STATUS - 放款状态
     */
    public Integer getLoanStatus() {
        return loanStatus;
    }

    /**
     * 设置放款状态
     *
     * @param loanStatus 放款状态
     */
    public void setLoanStatus(Integer loanStatus) {
        this.loanStatus = loanStatus;
    }

    /**
     * 获取放款信息
     *
     * @return LOAN_MSG - 放款信息
     */
    public String getLoanMsg() {
        return loanMsg;
    }

    /**
     * 设置放款信息
     *
     * @param loanMsg 放款信息
     */
    public void setLoanMsg(String loanMsg) {
        this.loanMsg = loanMsg;
    }

    /**
     * 获取放款订单号
     *
     * @return LOAN_NO - 放款订单号
     */
    public String getLoanNo() {
        return loanNo;
    }

    /**
     * 设置放款订单号
     *
     * @param loanNo 放款订单号
     */
    public void setLoanNo(String loanNo) {
        this.loanNo = loanNo;
    }

    /**
     * 获取放款时间
     *
     * @return LOAN_TIME - 放款时间
     */
    public Date getLoanTime() {
        return loanTime;
    }

    /**
     * 设置放款时间
     *
     * @param loanTime 放款时间
     */
    public void setLoanTime(Date loanTime) {
        this.loanTime = loanTime;
    }

    /**
     * 获取创建时间
     *
     * @return CREATE_TIME - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}